import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';

const bomManager: AppRouteModule = {
  path: '/bomManager',
  name: 'bomManager',
  component: LAYOUT,
  redirect: '/bomManager/bomDataBase',
  meta: {
    orderNo: 10,
    icon: 'ion:logo-web-component',
    title: t('routes.demo.bomManager.bomManager'),
  },
  children: [
    {
      path: 'bomDataBase',
      name: 'BomDataBase',
      meta: {
        title: t('routes.demo.bomManager.bomDataBase'),
        ignoreKeepAlive: false,
      },
      component: () => import('/@/views/demo/bomManager/index.vue'),
    },
  ],
};

export default bomManager;
